//
//  DesTripsObject.m
//  HappyTrip
//
//  Created by yuxuesong on 15-3-26.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "DesTripsObject.h"

@implementation DesTripsObject

- (instancetype)initWithDic:(NSMutableDictionary *)dic
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}

+ (instancetype)desTripsObjectDic:(NSMutableDictionary *)dic
{
    DesTripsObject *tripsObj = [[DesTripsObject alloc] initWithDic:dic];
    return [tripsObj autorelease];
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"id"]) {
        self.idNumber = value;
    }
}
- (id)valueForUndefinedKey:(NSString *)key
{
    return nil;
}

@end
